package com.jiao.mapper;

import com.jiao.domain.entity.MsgNotify;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


/**
 * 消息通知表(MsgNotify)表数据库访问层
 *
 * @author makejava
 * @since 2022-03-04 13:35:27
 */
@Mapper
public interface MsgNotifyMapper extends BaseMapper<MsgNotify> {
    Integer isExist(@Param("operatorId") Long operatorId, @Param("userId") Long userId, @Param("type") String type);

    /**
     * 修改消息的状态
     */
    int updateStatus(@Param("operatorId") Long operatorId, @Param("userId") Long userId, @Param("type") String type);

    int insertMsgNotify(@Param("operatorId") Long operatorId, @Param("userId") Long userId, @Param("type") String type);
}
